# -*- coding: utf-8 -*-

from rest_framework import serializers
from .models import Tasks



class TasksModelSerailizer(serializers.ModelSerializer):

    class Meta:
        model = Tasks
        exclude = ('create_time', 'update_time')


class SearchTasksModelSerailizer(serializers.ModelSerializer):
    task_start_data = serializers.CharField(write_only=True)
    task_end_data = serializers.CharField(write_only=True)

    class Meta:
        model = Tasks
        fields = "__all__"







